package com.yiyi.credit.manage.sso.common.exception;


public enum ResponseCode {

    SUCCESS("10000", "success"),

    PARAM_ERR("50500", "参数错误"),

    SERVICE_ERR("50502", "服务器异常"),

    USER_ROLE_NOT_EXIST("50700", "用户角色不存在"),

    NO_SYS_INFO("50701", "系统为空!"),

    ROOT_PID_CANNOT_DEL("50702", "根节点不能删除!"),

    PID_CANNOT_DELETE("50703", "父节点不能删除!"),

    RESOURCE_NOT_FUND("50704", "未获取到选中资源!"),

    ROLE_EXIST("50705", "角色名称已经存在!"),

    PARAM_NOT_PASS("50706", "参数校验未通过!"),

    USER_REGISTER_FAIL("50707", "用户注册失败!"),

    RESOURCE_NAME_CANNOT_NULL("50708", "资源名称不能为空!"),

    INCLUDE_ERROR_STR("50709", "列信息不能有非法字符!"),

    USERNAME_NOTNULL("60001", "用户名不能为空"),


    PWD_NOTNULL("60002", "密码不能为空"),

    USERNAME_REPEAT("60003", "用户名不能重复"),

    USER_NOT_EXIST("60004", "用户不存在"),

    PWD_WRONG("60005", "用户密码错误"),

    PWD_REPEAT("60006", "旧密码与新密码不能重复!"),

    OLD_PWD_WRONG("60007", "旧密码不正确!"),

    TOKEN_WRONG("60008", "无效的Token!"),

    TICKET_WRONG("60009", "无效的Ticket!"),

    SYS_INFO_EXIST_RESOURCE("60010", "该系统对应资源非空!"),

    SYS_ROLE_USERD("60011", "该角色已被引用,无法删除!"),

    NO_SYS_USER("60012", "用户不存在!"),

    NO_SYS_ROLE("60013", "角色不存在!"),

    USER_UN_ALLOT("60014", "用户未分配站点!"),

    USER_DISABLE("60015", "用户被禁用!"),

    USER_LOCK("60016", "用户被锁定!"),

    EXIST_PHONE("60017", "手机号已存在!"),

    USER_NO_ROLE("60018", "用户未分配角色!"),

    USER_BAND_ROLE("60019", "用户已分配角色!"),

    NO_SYSTEM_USER("60020", "不是系统用户!");


    private String code;

    private String message;

    ResponseCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
